﻿namespace ORS.OrderRobot
{
	/// <summary>
	/// 后台任务
	/// </summary>
	public interface IBackgroundWorker
    {
        string Name { get; }

        Task StartAsync(CancellationToken cancellationToken = default);
        Task StopAsync(CancellationToken cancellationToken = default);

    }
}

